package com.openbravo.bean;

import cn.ekuma.data.dao.bean.BaseBean;

public class AttSetInstInfo extends BaseBean<String> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 9039285016352710664L;
	private String attSetInstid;
    private String description;

    public AttSetInstInfo(String id, String desc) {
        this.attSetInstid=id;
        this.description=desc;
    }

    public String getAttSetInstid() {
        return attSetInstid;
    }

    public void setAttSetInstid(String attSetInstid) {
        this.attSetInstid = attSetInstid;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return description;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj==null)
            return false;
        if(obj instanceof AttSetInstInfo){
          AttSetInstInfo obj1 = (AttSetInstInfo)obj;
          if(this.attSetInstid!=null&&obj1.getAttSetInstid()!=null)
              return this.attSetInstid.equalsIgnoreCase(obj1.getAttSetInstid());
        }
        return false;
    }
    
    public String getKey() {
		return attSetInstid;
	}
    
}
